<template>
  <condition :list="list" :name="NAME" :field="field" :current="current" @listenCondition = "submitCondition"/>
</template>

<script>
import condition from './condition.vue'
export default {
  components: {
    condition
  },
  props: {
    list: {
      type: Array,
      default: null
    },
    current: {
      type: Number,
      default: null
    }
  },
  created() {
    this.NAME = '年收入 （单位/万美元）'
    this.ID = 'echart-income'
    this.field = ['小于1', '1-3', '3-5', '5-8', '8-12', '12-15', '15-20', '20-50', '大于50']
  },
  methods: {
    submitCondition(data) {
      this.$emit('listenCondition', 'annualIncome', data)

    }
  }
}
</script>
<style lang="scss">
.age-limit-card{
  .header-empty{
    width: 80px;
  }
  .sparkle-table{
    width: 100%;
  }
}
</style>
